timer object
This method forces the timer to an absolute millisecond count.
bool force(double milliseconds)
Parameters:
milliseconds
The number of milliseconds to set the timer to.
Return value:
true on success, false on failure.
Remarks:
This method sets the elapsed time to an absolute value, in milliseconds. If the timer has previously been paused with a call to the pause method, it will automatically be resumed.
Example:
// Create a timer and set it to make it seem as though 10 seconds have elapsed.
void main()
{
timer test;
test.force(10000);
alert("Result", test.elapsed + " milliseconds have now elapsed.");
}